class Cat:
    def __init__(self,name):
        print("这是一个初始化的方法");
        self.name = name;

    def eat(self):
        print(self.name + "小猫爱吃鱼");

    def drink(self):
        print(self.name + "小猫要喝水");

    def __str__(self):
        return ("我是小猫 %s" % self.name);